//
//  WXDanMu.h
//  弹幕
//
//  Created by tianlong on 2018/12/27.
//  Copyright © 2018年 tianlong. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WXDanMuMessage.h"

typedef NS_ENUM(NSInteger, DanMuDirection) {
    DanMuDirectionVertical,
    DanMuDirectionHorizontal,
};

@interface WXDanMu : UIView
@property (strong, nonatomic) NSArray *dataSource;
@property (copy,   nonatomic) void (^animationFinishedBlock)(void);
- (instancetype)initWithDanMuDirection:(DanMuDirection)direction;
- (void)insertDanMuMessage:(WXDanMuMessage *)message;
- (CGFloat)getViewHWithVisibleRows:(NSInteger)visibleRows;
@end
